package cn.webdai.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Configuration;

/**
 * @author 戴金华
 * @date 2019-12-04 16:28
 */
@Configuration
public class TopicRabbitConfig {

    final static String message = "topic.message";
    final static String messages = "topic.messages";

    //创建队列
    public Queue queueMessage(){
        return new Queue(TopicRabbitConfig.message);
    }

    //创建队列
    public Queue queueMessages(){
        return new Queue(TopicRabbitConfig.messages);
    }
}
